export const SETTOKEN = (token)=>{
    localStorage.setItem('token',token)
}
export const SETUSERINFO = (userInfo)=>{
    localStorage.setItem('userInfo',JSON.stringify(userInfo))
}
export const GETTOKEN = ()=>{
   return localStorage.getItem('token')
}
export const GETUSERINFO = ()=>{
    return JSON.parse(localStorage.getItem('userInfo'))
}

export const REMOVEINFO = (data)=>{
    localStorage.removeItem(data)
}